import {
    baseUrl,baseImagePrefixUrl
} from './utils/commons.js';

export default {
    baseUrl: baseUrl,
    baseImagePrefixUrl:baseImagePrefixUrl,
    user: {
        getCode: '/api/login/',
        updateInfo: '/api/user/update',
        getInfo: '/api/sign/user/get',
        register: '/api/user/sign',
        getPhone: '/api/telphone/get'
    },
    driver: {
        registerDriver: '/api/rescue/company/driver/sign',
        getDriverInfo: '/api/rescue/company/driver/get',
        updateDriverInfo: '/api/rescue/company/driver/update',
        joinDriverList: '/api/rescue/company/driver/invite/',
        cancelDriver: '/api/rescue/driver/cancel',
        industryList: '/api/industry/list',
        registerWithCard:'/api/rescue/company/driver/registerWithCard',
        wxPayCallBack:'/api/employeeInfo/wxPayCallBack',
    },
    leader: {
        registerLeader: '/api/rescue/company/manager/sign',
        getLeaderInfo: '/api/rescue/company/manager/get',
        updateLeaderInfo: '/api/rescue/company/manager/update',
        getEmployeeList: '/api/list/all/driver',
        joinEmployess: '/api/rescue/invite/company/get/',
        employeeToJoin: '/api/rescue/company/driver/invite/',
        delEmployess: '/api/delete',
        editCompanyName: '/api/rescue/company/edit/company/name',
        getInviteCode: '/api/rescue/company/invite/code/get'
    },
    service: {
        registerService: '/api/rescue/agent/sign',
        getServiceInfo: '/api/rescue/agent/get',
        updateServiceInfo: '/api/rescue/agent/update',
        getDistributeList: '/api/list/agency/develop/driver/',
        getDistributeCode: '/api/rescue/agent/distribution/code/get',
    },
    insuranceManger: {
        registerManger: '/api/insurance/service/manager/sign',
        getMangerInfo: '/api/insurance/service/manager/get',
        updateMangerInfo: '/api/insurance/service/manager/update',
    },
    uploadUrl: {
        driverLisence: '/api/driver/license/upload',
        drivingLisence: '/api/driving/license/upload',
        applicant: '/api/applicant/upload',
        busindessLicence: '/api/business/license/upload',
        idCard: '/api/idcard/upload',
        signImg: '/api/sign/upload',
        logo: '/api/company/logo/upload',
        commons: '/api/insurance/image/upload'
    },
    workOrder: {
        getFormDetail: '/api/generate/workorder/form',
        createOrder: '/api/workorder/create',
        updateOrderForForm: '/api/workorder/update/',
        getInfo: '/api/workorder/get/',
        getOrderList: '/api/work/order/list',
        getPlantList: '/api/list/all',
        getService: '/api/service/protocol/get/',
        getVehicleStatus: '/api/car/condition/form/get',
        getAgressment: '/api/service/protocol/get/',
        /**获取工单全数据 */
        getFullDetail: '/api/generate/full/workorder/form',
        /**调整里程数 */
        updateMileage: '/api/workorder/mileage/update',
        verify: '/api/classify/canBug'
    },
    insurance: {
        initOrder: '/api/insurance/order/init',
        createOrder: '/api/insurance/order/create',
        detailOrder: '/api/insurance/order/get',
        listOrder: '/api/insurance/order/list',
        paymentDetailOrder: '/api/insurance/order/pay/detail',
        paymentOrder: '/api/order/pay',
        /**取消订单 */
        cancelOrder: '/api/insurance/order/cancel',
        /** 安全结案*/
        completeOder: '/api/insurance/order/complete',
        /**获取付款二维码 */
        getPayQRcode: '/api/insurance/order/pay/qrcode',
        /**展示二维码 */
        showPayQRcode: '/api/show/qrcode',
        checkPayStatus: '/api/chinaums/pay/callback',
        /**订单完成请求 */
        completeOrder: '/api/insurance/order/gift/get',
        /**获取服务协议 */
        getAgreement: '/api/order/service/protocol/get'
    },
    enquiry: {
        request: '/api/insurance/enquiry/request',
        detail: '/api/insurance/enquiry/detail',
        list: '/api/insurance/enquiry/list'
    },
    accident: {
        getOrderInfo: '/api/accident/report/orderInfo/get',
        accidentCreate: '/api/accident/report/info/create',
        accidentDetail: '/api/accident/report/info/get/',
        accidentEdit: '/api/accident/report/info/edit',
        accidentList: '/api/accident/report/list',
        /**刷新事故进度 */
        accidentRefresh: '/api/accident/report/info/refresh',
    },
    userWallet: {
        getIncomList: '/api/user/wallet/income/list',
        getIncomAllow: '/api/user/wallet/income/allow',
        withdrawIncome: '/api/user/wallet/income/withdraw',
        getIntegralList: '/api/user/wallet/integral/list',
        getCompanyIncomList: '/api/company/wallet/income/list',
        getCompanyIncomAllow: '/api/company/wallet/income/allow',
        withdrawCompanyIncome: '/api/company/wallet/income/withdraw',
        getCompanyIntegralList: '/api/company/wallet/integral/list'
    },
    transportConfirm: {
        init: '/api/transport/init',
        stepOne: '/api/transport/stepOne',
        stepTwo: '/api/transport/stepTwo',
        complete: '/api/transport/complete',
        load: '/api/transport/load',
        list: '/api/transport/list',
        protocol: '/api/transport/init/protocol/get'
    },
    arbitration: {
        add: '/api/arbitration/add',
        load: '/api/arbitration/load'
    },
    orderCenter: {
        //保存货主方委托单信息
        saveOrderCenter: '/api/OrderCenter/saveOrderCenter',
        //查询货源大厅数据
        getPage: '/api/orderCenter/getPage',
        //货主方确认收货
        confirmReceive:'/api/orderCenter/confirmReceive'
    },
    truckCenter: {
        //保存车辆信息
        saveTruckCenter: '/api/truckCenter/saveTruckCenter',
        //获取车源大厅数据
        getPage: '/api/truckCenter/getPage',
        //根据ID，查询运输单信息
        getById:'/api/truckCenter/getById',
    },
    truckOrder: {
        //查询整个单据数据：委托单/运输单/确认单
        getById: '/api/orderTruckInfo/getById',
        //取消申请
        cancelApply: '/api/orderTruckInfo/cancelApply',
        //查询除已发布状态外的单据
        getPage:'/api/orderTruck/getPage',
        //同意合作或者拒绝合作
        dealOrReject:'/api/orderTruck/dealOrReject',
        cancelOrder:'/api/orderTruckInfo/cancelOrder',
        driverCancel:'/api/orderTruckInfo/driverCancel',
        //查询homeV2页面展示用数据
        getHomeV2Page:'/api/orderTruck/getHomeV2Page',
    },
    orderTruckImage:{
        uploadImage:'/api/orderTruck/imageUpload'
    },
    rescueApply:{
        saveApplyOrder:'/api/rescueApplyOrder/saveOrder',
        getPage:'/api/rescueApplyOrder/getPage',
        getById:'/api/rescueApplyOrder/getById',
        reEditOrder:'/api/rescueApplyOrder/reEditOrder'
    },
    dictionary:{
        getAllDictionary:'/api/dictionary/getAllDictionary',
    },
    complaint:{
        getMiniAppPage:'/api/complaintOrder/getMiniAppPage',
        getOrderInfoById:'/api/complaintOrder/getOrderInfoById',
        saveOrder:'/api/complaintOrder/saveOrder',
        finishOrder:'/api/complaintOrder/finishOrder'
    },
    tuanOil:{
        getStationList:'/api/tuanOil/getStationList',
        getStationInfo:'/api/tuanOil/getStationInfo',
        getPayCode:'/api/tuanOil/getPayCode'
    },
    article:{
        getPage:'/api/article/getArticlePage',
        getById:'/api/article/getArticleById',
        getBanners:'/api/article/getBanners'
    },

}